{"ast":null,"code":"import _extends from \"@babel/runtime/helpers/esm/extends\";\nexport default function requirePropFactory(componentNameInError, Component) {\n  if (process.env.NODE_ENV === 'production') {\n    return function () {\n      return null;\n    };\n  } // eslint-disable-next-line react/forbid-foreign-prop-types\n\n  var prevPropTypes = Component ? _extends({}, Component.propTypes) : null;\n  var requireProp = function requireProp(requiredProp) {\n    return function (props, propName, componentName, location, propFullName) {\n      var propFullNameSafe = propFullName || propName;\n      var defaultTypeChecker = prevPropTypes == null ? void 0 : prevPropTypes[propFullNameSafe];\n      if (defaultTypeChecker) {\n        for (var _len = arguments.length, args = new Array(_len > 5 ? _len - 5 : 0), _key = 5; _key < _len; _key++) {\n          args[_key - 5] = arguments[_key];\n        }\n        var typeCheckerResult = defaultTypeChecker.apply(void 0, [props, propName, componentName, location, propFullName].concat(args));\n        if (typeCheckerResult) {\n          return typeCheckerResult;\n        }\n      }\n      if (typeof props[propName] !== 'undefined' && !props[requiredProp]) {\n        return new Error(\"The prop `\".concat(propFullNameSafe, \"` of \") + \"`\".concat(componentNameInError, \"` can only be used together with the `\").concat(requiredProp, \"` prop.\"));\n      }\n      return null;\n    };\n  };\n  return requireProp;\n}","map":{"version":3,"names":["_extends","requirePropFactory","componentNameInError","Component","process","env","NODE_ENV","prevPropTypes","propTypes","requireProp","requiredProp","props","propName","componentName","location","propFullName","propFullNameSafe","defaultTypeChecker","args","typeCheckerResult","Error"],"sources":["/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/@mui/utils/esm/requirePropFactory.js"],"sourcesContent":["import _extends from \"@babel/runtime/helpers/esm/extends\";\nexport default function requirePropFactory(componentNameInError, Component) {\n  if (process.env.NODE_ENV === 'production') {\n    return () => null;\n  } // eslint-disable-next-line react/forbid-foreign-prop-types\n\n\n  const prevPropTypes = Component ? _extends({}, Component.propTypes) : null;\n\n  const requireProp = requiredProp => (props, propName, componentName, location, propFullName, ...args) => {\n    const propFullNameSafe = propFullName || propName;\n    const defaultTypeChecker = prevPropTypes == null ? void 0 : prevPropTypes[propFullNameSafe];\n\n    if (defaultTypeChecker) {\n      const typeCheckerResult = defaultTypeChecker(props, propName, componentName, location, propFullName, ...args);\n\n      if (typeCheckerResult) {\n        return typeCheckerResult;\n      }\n    }\n\n    if (typeof props[propName] !== 'undefined' && !props[requiredProp]) {\n      return new Error(`The prop \\`${propFullNameSafe}\\` of ` + `\\`${componentNameInError}\\` can only be used together with the \\`${requiredProp}\\` prop.`);\n    }\n\n    return null;\n  };\n\n  return requireProp;\n}"],"mappings":"AAAA,OAAOA,QAAQ,MAAM,oCAAoC;AACzD,eAAe,SAASC,kBAAkB,CAACC,oBAAoB,EAAEC,SAAS,EAAE;EAC1E,IAAIC,OAAO,CAACC,GAAG,CAACC,QAAQ,KAAK,YAAY,EAAE;IACzC,OAAO;MAAA,OAAM,IAAI;IAAA;EACnB,CAAC,CAAC;;EAGF,IAAMC,aAAa,GAAGJ,SAAS,GAAGH,QAAQ,CAAC,CAAC,CAAC,EAAEG,SAAS,CAACK,SAAS,CAAC,GAAG,IAAI;EAE1E,IAAMC,WAAW,GAAG,SAAdA,WAAW,CAAGC,YAAY;IAAA,OAAI,UAACC,KAAK,EAAEC,QAAQ,EAAEC,aAAa,EAAEC,QAAQ,EAAEC,YAAY,EAAc;MACvG,IAAMC,gBAAgB,GAAGD,YAAY,IAAIH,QAAQ;MACjD,IAAMK,kBAAkB,GAAGV,aAAa,IAAI,IAAI,GAAG,KAAK,CAAC,GAAGA,aAAa,CAACS,gBAAgB,CAAC;MAE3F,IAAIC,kBAAkB,EAAE;QAAA,kCAJsEC,IAAI;UAAJA,IAAI;QAAA;QAKhG,IAAMC,iBAAiB,GAAGF,kBAAkB,gBAACN,KAAK,EAAEC,QAAQ,EAAEC,aAAa,EAAEC,QAAQ,EAAEC,YAAY,SAAKG,IAAI,EAAC;QAE7G,IAAIC,iBAAiB,EAAE;UACrB,OAAOA,iBAAiB;QAC1B;MACF;MAEA,IAAI,OAAOR,KAAK,CAACC,QAAQ,CAAC,KAAK,WAAW,IAAI,CAACD,KAAK,CAACD,YAAY,CAAC,EAAE;QAClE,OAAO,IAAIU,KAAK,CAAC,oBAAcJ,gBAAgB,wBAAgBd,oBAAoB,mDAA2CQ,YAAY,YAAU,CAAC;MACvJ;MAEA,OAAO,IAAI;IACb,CAAC;EAAA;EAED,OAAOD,WAAW;AACpB"},"metadata":{},"sourceType":"module"}